# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time
  protect_from_forgery # See ActionController::RequestForgeryProtection for details

  #include AuthenticatedSystem
  # include RoleRequirementSystem
  # include EasyRoleRequirementSystem
  include SslRequirement
  
  
  
  
  # ==============   Status
  # Scrub sensitive parameters from your log
  # filter_parameter_logging :password
  
  # Return list of statuses for model
  # def model_statuses(model = "")
  #   unless model.nil?
  #     Object.const_get(model.to_s.titleize).send(:statuses)
  #   end
  # end
  
  # # get action depends on status  
  #  def all_action_statuses(options={})
  #    action = "activate"
  #    default_status = "inactive"
  #    model = options[:model]
  #    status = options[:status] || default_status
  #    unless model.nil?
  #      klass = Object.const_get(model.to_s.titleize)
  #      test = klass.action_statuses
  #      action = test["#{status}"] || action
  #    end
  #    return action
  #  end
  # ==============  End Status
  
end
